#ifndef TEMPERATUREPLOTSETTINGSDIALOG_H
#define TEMPERATUREPLOTSETTINGSDIALOG_H

#include <QDialog>

namespace Ui {
class TemperaturePlotSettingsDialog;
}

class TemperaturePlotSettingsDialog : public QDialog
{
    Q_OBJECT

public:
    struct PlotSettings
    {
        int xAxisRange;

        int nPlot;
        int temperatureMIN;
        int temperatureMAX;

        int plotPeriod;

        bool demoChecked;
    };

public:
    explicit TemperaturePlotSettingsDialog(QWidget *parent = 0);
    ~TemperaturePlotSettingsDialog();

    PlotSettings settings() const;

private:
    void updateSettings();

signals:
    void signalUpdatePlotSettings(int id);

private slots:
    void slotSelectedAxis(int idx);
    void slotSetDemoPlotStatus(bool status);
    void slotSetYRange();
    void slotApply();

private:
    Ui::TemperaturePlotSettingsDialog *ui;
    PlotSettings m_currentSettings;
};

#endif // TEMPERATUREPLOTSETTINGSDIALOG_H
